package com.example.filecabinet.dao;

import com.example.filecabinet.entity.Employee_info;
import com.example.filecabinet.entity.Employee_infoExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface Employee_infoMapper {
    int countByExample(Employee_infoExample example);

    int deleteByExample(Employee_infoExample example);

    int deleteByPrimaryKey(String employeeId);

    int insert(Employee_info record);

    int insertSelective(Employee_info record);

    List<Employee_info> selectByExample(Employee_infoExample example);

    Employee_info selectByPrimaryKey(String employeeId);

    int updateByExampleSelective(@Param("record") Employee_info record, @Param("example") Employee_infoExample example);

    int updateByExample(@Param("record") Employee_info record, @Param("example") Employee_infoExample example);

    int updateByPrimaryKeySelective(Employee_info record);

    int updateByPrimaryKey(Employee_info record);

    // 根据身份证查询是否有该员工
    Employee_info selectByEmployeeIdNumber(String employeeIdNumber);
}